const global = getApp().globalData;
const wxApi = global.wxApi;
Component({

  properties: {
    unitdata: {
      type: Object
    },
    unitIndex: {
      type: Number
    },
    subed: {
      type: Boolean
    }
  },
  methods: {
    onClick() {
      let unitData = this.data.unitdata;
      unitData.subed = this.data.subed;
      this.triggerEvent('click', unitData);
    }
  }
}) 